1. /* slodbrem.cpp by K.Tsuru */
  2. // function ID = 211 DRADIX
  3. /***************
  4. SLong class
  5. operator%() m%d
  6. ****************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. SLong operator%(const SLong& m, double n){
  11. if(fabs(n) == 1.0) return SLong(m.Type(), minArraySize);// return 0.0;
  12. if( fabs(n) <= m.SlOpMaxValue() ){
  13. ulong p = (ulong)fabs(n);
  14. long rem;
  15. SLong result(m.Type(), 0);
  16. LsDiv(m, p, &rem);
  17. result = m.Sign(211)*labs(rem);
  18. return result;
  19. }
  20. return LLDiv(m, n, 1).rem;
  21. }

slodbrem.cpp : last modifiled at 2015/11/27 14:21:08(506 bytes)
created at 2017/10/07 10:26:50
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).